package com.woniu.mealsService.mapper;

import com.woniu.mealsService.model.OrderProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author jiang
 * @since 2024年12月10日
 */
@Mapper
public interface OrderProductMapper extends BaseMapper<OrderProduct> {

    List<OrderProduct> selectLimit();

    List<String> selectOrderIdByStoreId(@Param("storeId") Long storeId);

    List<OrderProduct> selectOrderByTime(@Param("storeId") Long storeId,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
